import request from '../utils/request';
import host from '../utils/constant';

export async function extract(params) {
  const requestUrl = `${host}/parser/extract`;
  return request(requestUrl, {
    method: 'POST',
    body: params,
  });
}

export async function classify(params) {
  const requestUrl = `${host}/parser/classify`;
  return request(requestUrl, {
    method: 'POST',
    body: params,
  });
}
